package com.xinqi.modules.databank.dto.req;

import com.xinqi.modules.databank.dto.req.question.ResourceAnswerDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 互动课件切片提问表-请求对象-新增
 *
 * @author: system
 * @date: 2023/03/15
 */
@Data
public class ResourceInteractionLogCreateDTO implements Serializable {

    /** 班级ID */
    @Schema(description = "班级ID")
    @NotNull(message = "班级ID不能为空")
    private Long classId;
    /** 课程内容ID */
    @Schema(description = "课程内容ID")
    @NotNull(message = "课程内容ID不能为空")
    private Long contentId;
    /** 资料文件ID/互动环节ID */
    @NotNull(message = "资料文件ID/互动环节ID不能为空")
    @Schema(description = "资料文件ID/互动环节ID")
    private Long resourcePartId;
    /** 学生ID */
    @Schema(description = "学生ID", hidden = true)
    private Long studentId;
    /** 学生答题数据集合 */
    @Schema(description = "学生答题数据集合")
    private List<ResourceAnswerDTO> answer;
}
